package concurrency;

public class IntegerShared{
	
	private Integer iLocker = Integer.valueOf(1);
	
	private Integer i;

	public Integer getI() {
		synchronized (iLocker) {
			return i;			
		}
	}

	public void setI(Integer i) {
		synchronized (iLocker) {
			this.i = i;			
		}
	}
}
